package yzy.ecps.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import yzy.ecps.dao.PtlUserDao;
import yzy.ecps.model.BtcPtlUser;
import yzy.ecps.service.PtlUserService;

@Service
public class PtlUserServiceImpl implements PtlUserService {
	
	@Autowired
	private PtlUserDao userDao;
	
	public BtcPtlUser getLoginUser(String userCode, String password) {
		Map<String, String> map = new HashMap<>();
		map.put("userCode", userCode);
		map.put("password", password);
		
		return userDao.getUserByCodeAndPwd(map);
	}

}
